Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

118
Views
Mover todas las notificaciones al estado "visto" al hacer clic en el icono de notificación

La lista de notificaciones proviene del backend. En la página de inicio, hay un icono de notificación. Imprimo notificaciones cuando hago clic en este icono.

En la respuesta devuelta; Información vista --> no vista si su valor es 0, se verá si su valor es 1.

estoy tratando de hacer; Todas las notificaciones deben configurarse como "vistas" cuando se abre la página de notificaciones después de presionar el botón de notificaciones en la página principal.

Servicio

 const seen = (inAppNotificationRequestDto) => { return new Observable((observer) => { axiosInstance .put(SERVICE_PATH + '/markAsSeen', inAppNotificationRequestDto) .then((response) => { observer.next(response.data); observer.complete(); }) .catch((err) => { console.log(err); }); }); };

página de inicio

El icono de notificación está aquí. Se abrirá una ventana emergente con una lista de las notificaciones en las que hizo clic en el icono.

 const handleNotificationClick = (event) => { console.log(isIconDisabled); if (!isIconDisabled) { setAnchorEl(event.currentTarget); } }; <div className="header__notification"> {notificationData?.newNotification === true ? ( <AS.Badge color="primary" variant="dot" onClick={handleNotificationClick} /> ) : null} <AS.NotificationsOutlinedIcon className="header__notification_icon" onClick={handleNotificationClick} /> <NotificationList notification={notificationData} /> </div>
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!